package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 商品属性值参数
 * @author LikeAdmin
 */
@Data
@ApiModel("商品属性值更新参数")
public class ProductPropertyValueUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    private Long id;

    @NotNull(message = "propertyId参数缺失")
    @ApiModelProperty(value = "属性项的编号")
    private Long propertyId;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;
}
